<template>
  <div class="dashboard-editor-container">
    <panel-group></panel-group>

    <el-row style="background:#fff;margin-bottom:32px;">
      <el-col :xs="24" :sm="24" :lg="12">
        <div class="chart-wrapper">
          <el-tag>周转率变化</el-tag>
          <velocity-chart></velocity-chart>
        </div>
      </el-col>

      <el-col :xs="24" :sm="24" :lg="12">
        <div class="chart-wrapper">
          <el-tag>使用率变化</el-tag>
          <line-chart></line-chart>
        </div>
      </el-col>
    </el-row>
    <el-row :gutter="32">
      <el-col :xs="24" :sm="24" :lg="8">
        <div class="chart-wrapper">
          <el-tag>隔夜车排名</el-tag>
          <overnight-car></overnight-car>
        </div>
      </el-col>

      <el-col :xs="24" :sm="24" :lg="8">
        <div class="chart-wrapper">
          <el-tag>未缴费车辆</el-tag>
          <cannot-pay-table></cannot-pay-table>
        </div>
      </el-col>

      <el-col :xs="24" :sm="24" :lg="8">
        <div class="chart-wrapper">
          <el-tag>车场未收费用</el-tag>
          <transaction-table></transaction-table>
        </div>
      </el-col>
    </el-row>

  </div>
</template>

<script>
  import PanelGroup from './admin/components/PanelGroup'
  import BarChart from './admin/components/BarChart'
  import PieChart from './admin/components/PieChart'
  import DynamicInformation from './admin/components/DynamicInformation'
  import LineChart from './admin/components/LineChart.vue'
  import TransactionTable from './admin/components/TransactionTable'
  import CannotPayTable from './admin/components/cannotPayTable'
  import OvernightCar from './admin/components/OvernightCar'
  import VelocityChart from './admin/components/velocityChart'

  export default {
    data() {
      return {
        bar_chart: null,
        line_chart: null,
        bar_id: 'bar_data',
        line_id: 'line_data'
      }
    },
    components: {
      VelocityChart,
      OvernightCar,
      CannotPayTable,
      PanelGroup,
      BarChart,
      PieChart,
      DynamicInformation,
      LineChart,
      TransactionTable
    },
    mounted() {
    },
    methods: {}
  }
</script>

<style lang="less" scoped>
  .dashboard-editor-container {
    padding: 32px;
    background-color: rgb(240, 242, 245);
    .chart-wrapper {
      background: #fff;
      padding: 16px 16px 0;
      margin-bottom: 32px;
    }
  }
</style>
